package com.github.fancyideas.security.module.view;

import lombok.Data;
import org.hibernate.annotations.Immutable;
import org.hibernate.annotations.Subselect;

import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@Entity
@Immutable
@Subselect("select * from v_user_role")
public class UserRoleView {

    @Id
    private Long userRoleId;
    private Long userId;
    private Long roleId;
    private String roleName;

}
